package cn.hh.aspectjlog.controller;


import cn.hh.aspectjlog.common.aspectj.lang.annotation.Log;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("/info")
@ResponseBody
public class LogController {

    @GetMapping("list")
    @Log(title="个人信息",serviceName = "custinfo")
    public Map<String,Object> list(@RequestParam Map<String,Object> param){

        Map<String,Object> result = new HashMap<String,Object>();
        result = param;
        return result;

    }

    @PostMapping("detail")
    @Log(title="个人信息",serviceName = "custdetail")
    public Map<String,Object> detail(@RequestBody Map<String,Object> param){
        System.out.println("调用时间" + new Date().getTime());
        Map<String,Object> result = new HashMap<String,Object>();
        result = param;
        return result;

    }
}
